package basic.com.liz.learn.design.facade;

public class User
{
    private Car car;
    
    private House house;
    
    public User(Car car, House house)
    {
        super();
        this.car = car;
        this.house = house;
    }
    
    public User()
    {
        super();
        this.car = new Car();
        this.house = new House();
    }
    
    public void goOut()
    {
        house.goOut();
        car.goOut();
        
    }
    
    public void goHome()
    {
        car.goHome();
        house.goHome();
    }
}
